package com.homework.HomeAcount.service;

import java.util.List;
import java.util.Map;

import com.homework.HomeAcount.entity.Role;

public interface RoleService {

	public List<Role> getRolesByUserId(String userId);
	
	/**
	 * 获取所有角色信息
	 * @return
	 */
	public List<Role> getAllRoles();
	
	/**
	 * 用户角色分配
	 * @param userId
	 * @param list
	 */
	public void roleAllocated(String userId,List<Map<String, Object>> list) throws Exception ;
	
}
